﻿using System;
namespace Gmis.Model
{
    /// <summary>
    /// ArtelBuy:实体类(属性说明自动提取数据库字段的描述信息)
    /// </summary>
    [Serializable]
    public partial class ArtelBuy
    {
        public ArtelBuy()
        {
            dReg = dDelivery = DateTime.Now;
        }

        #region Model
        private string _sid;
        private string _artelid;
        private string _snumber = "";
        private DateTime _dreg;
        private string _scontact = "";
        private string _sbrand = "";
        private string _sname;
        private string _sspec = "";
        private decimal _ncount;
        private string _sunit;
        private decimal _nprice;
        private decimal _ntotal;
        private DateTime _ddelivery;
        private string _spurchaser;
        private string _sproducer;
        /// <summary>
        /// 
        /// </summary>
        public string sId
        {
            set { _sid = value; }
            get { return _sid; }
        }
        /// <summary>
        /// 外键，合作社主键
        /// </summary>
        public string sArtelId
        {
            set { _artelid = value; }
            get { return _artelid; }
        }
        /// <summary>
        /// 预购单号
        /// </summary>
        public string sNumber
        {
            set { _snumber = value; }
            get { return _snumber; }
        }
        /// <summary>
        /// 登记时间
        /// </summary>
        public DateTime dReg
        {
            set { _dreg = value; }
            get { return _dreg; }
        }
        /// <summary>
        /// 联系人
        /// </summary>
        public string sContact
        {
            set { _scontact = value; }
            get { return _scontact; }
        }
        /// <summary>
        /// 品牌
        /// </summary>
        public string sBrand
        {
            set { _sbrand = value; }
            get { return _sbrand; }
        }
        /// <summary>
        /// 订货名称
        /// </summary>
        public string sName
        {
            set { _sname = value; }
            get { return _sname; }
        }
        /// <summary>
        /// 产品规格
        /// </summary>
        public string sSpec
        {
            set { _sspec = value; }
            get { return _sspec; }
        }
        /// <summary>
        /// 预购数量
        /// </summary>
        public decimal nCount
        {
            set { _ncount = value; }
            get { return _ncount; }
        }
        /// <summary>
        /// 计量单位
        /// </summary>
        public string sUnit
        {
            set { _sunit = value; }
            get { return _sunit; }
        }
        /// <summary>
        /// 预购价格
        /// </summary>
        public decimal nPrice
        {
            set { _nprice = value; }
            get { return _nprice; }
        }
        /// <summary>
        /// 预购额
        /// </summary>
        public decimal nTotal
        {
            set { _ntotal = value; }
            get { return _ntotal; }
        }
        /// <summary>
        /// 交货时间
        /// </summary>
        public DateTime dDelivery
        {
            set { _ddelivery = value; }
            get { return _ddelivery; }
        }
        /// <summary>
        /// 订货商
        /// </summary>
        public string sPurchaser
        {
            set { _spurchaser = value; }
            get { return _spurchaser; }
        }
        /// <summary>
        /// 生产厂商
        /// </summary>
        public string sProducer
        {
            set { _sproducer = value; }
            get { return _sproducer; }
        }
        #endregion Model
    }
}

